package com.acme.task4;

/**
 * Class which prints number of 3, 7, 9 in array.
 * @author belDser
 */
public class Task4Arrays
{
	/**
	 * The main() method.
	 * @param args command line arguments
	 */
	public static void main(String[] args)
	{
		int array[] = new int[10];
		array[0] = 3;	array[1] = 7;
		array[2] = 9;	array[3] = 7;
		array[4] = 3;	array[5] = 9;
		array[6] = 7;	array[7] = 3;
		array[8] = 3;	array[9] = 7;		
		
		int[] count = new int[3];
		for (int i = 0; i < array.length; i++)
		{
			switch (array[i])
			{
				case 3:
					count[0]++;
					break;
				case 7:
					count[1]++;
					break;
				case 9:
					count[2]++;
					break;
			}
		}
		
		System.out.println("Number of 3: " + count[0]);
		System.out.println("Number of 7: " + count[1]);
		System.out.println("Number of 9: " + count[2]);
	}
}
